//
//  NSCalendar+CycleCalendar.m
//  CycleControlFunction
//
//  Created by ddy on 2018/8/7.
//  Copyright © 2018年 cycle. All rights reserved.
//

#import "NSCalendar+CycleCalendar.h"
#import <UIKit/UIKit.h>
@implementation NSCalendar (CycleCalendar)
/** 初始化Canlendar */
+ (instancetype)cycle_calendar{
    
    NSCalendar *calendar = nil;
    if ([UIDevice currentDevice].systemVersion.doubleValue >= 8.0) {
        calendar = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    }else{
        calendar = [NSCalendar currentCalendar];
    }
    return calendar;
}
@end
